<!doctype html>
<html>
<head>
    <title>WebSSH</title>
<!--    <link href="https://cdn.jsdelivr.net/npm/xterm@5.0.0/css/xterm.css" type="text/css" rel="stylesheet"/>-->
    <link rel="stylesheet" href="css/xterm.min.css" />
    <link href="//cdn.bootcdn.net/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet">
    <style>
        body, html  {
          font-family: helvetica, sans-serif, arial;
          font-size: 1em;
          background-color: rgb(0, 0, 0);
          color: rgb(240, 240, 240);
          height: 100%;
          margin: 0;
        }
        html {
            overflow: -moz-hidden-unscrollable;
            height: 100%;
        }
        body::-webkit-scrollbar {
        display: none;
        }

        body {
        -ms-overflow-style: none;
        height: 100%;
        width: calc(100vw + 18px);
        overflow: auto;
        }
        #terminal-container {
            display: block;
            width: 100vw;
            margin: 0 auto;
            padding: 2px;
            height: calc(100% - 1px);

        }
        #terminal-container .terminal {
            background-color: #000000;
            color: #fafafa;
            padding: 2px;
            height: calc(100% - 1px);
        }
        #terminal-container .terminal:focus .terminal-cursor {
            background-color: #fafafa;
        }

    </style>
    <script>
        window.getContextPath=function() {
            var pathName = document.location.pathname;
            var index = pathName.substr(1).indexOf("/");
            var result = pathName.substr(0,index+1);
            return result;
        }

    </script>
</head>
<body>
<div id="terminal-container" class="terminal"></div>

<script src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/xterm@5.0.0/lib/xterm.js" charset="utf-8"></script>-->
<script src="js/xterm.min.js" charset="utf-8"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.6.0/lib/xterm-addon-fit.js" charset="utf-8"></script>-->
<script src="js/xterm-addon-fit.js" charset="utf-8"></script>

<script src="js/webssh.min.js" charset="utf-8"></script>
<script>
var connectData = window.localStorage.getItem("connectData");
openTerminal(JSON.parse(connectData));

</script>
</body>
</html>
